﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.exam.ScoreInput2" %>
<%@ Import Namespace="E.Enum" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>学员成绩输入</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/exam.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/student.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/exam.js"></script>
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript">
    window.onload = function() {
    document.getElementById("loading").style.display = "none";
    document.getElementById("form1").style.display = "";
    }
  </script>
</head>
<body>
  <div id="loading">数据加载中，请稍等</div>
  <form id="form1" method="post" action="?act=s">
    <div class="m_top"></div>
    <div class="block" style="height:100px;">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;学员信息</div>
      </div>
      <div class="spe_line_2"></div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">姓名：</div>
        <div class="fl"><input type="text" id="UserNameTxt" name="UserNameTxt" value="<%=username %>" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;Email：</div>
        <div class="fl"><input type="text" id="EmailTxt" name="EmailTxt" value="<%=email %>" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;登录名：</div>
        <div class="fl"><input type="text" id="LoginIDTxt" name="LoginIDTxt" value="<%=loginid %>" /></div>
      </div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">培训机构：</div>
        <div class="fl">
          <% if (areaList != null && areaList.Count > 0) { %>
          <select id="AreaSlt" name="AreaSlt">
            <option value="-1">请选择</option>
            <% foreach (DictAreaModel areaModel in areaList) { %>
              <option value="<%=areaModel.ID %>"><%=areaModel.Name%></option>
            <% } %>
          </select>
          <% } %>
        </div>
        <div class="fl" style="line-height:23px;">&nbsp;证书类别：</div>
        <div class="fl">
          <% if (certificateList != null && certificateList.Count > 0) { %>
          <select id="CertificateSlt" name="CertificateSlt">
            <option value="-1">请选择</option>
            <% foreach (System.Collections.Generic.KeyValuePair<int, string> kvp in certificateList) { %>
              <option value="<%=kvp.Key %>"><%=kvp.Value%></option>
            <% } %>
          </select>
          <% } %>
        </div>
        <div class="fl">&nbsp;&nbsp;<input type="image" style="width:54px; height:23px;" src="/images/btn/search.gif" /></div>
      </div>
    </div>
    
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;搜索结果</div>
      </div>
      <div class="spe_line_2"></div>
      
    <% if (userList != null && userList.Count > 0) { %>
    
      <div id="datatable">
        <div class="data_rows" style="font-weight:bolder;">
          <div class="d_r_l">登录名</div>
          <div class="d_r_n">姓名</div>
          <div class="d_r_e">Email</div>
          <div class="d_r_g">性别</div>
          <div class="d_r_o">操作</div>
        </div>
        
        <% foreach (UserListModel model in userList) { %>
        <div class="data_rows">
          <div class="d_r_l"><%=model.LoginID %></div>
          <div class="d_r_n"><%=model.UserName.Equals("") ? "&nbsp;" : model.UserName %></div>
          <div class="d_r_e"><%=model.Email.Equals("") ? "&nbsp;" : model.Email%></div>
          <div class="d_r_g"><%=model.Gender ? "男" : "女" %></div>
          <div class="d_r_o"><a href="/exam/ScoreEdit.aspx?id=<%=model.ID %>">编辑成绩</a></div>
        </div>
        <% } %>
        
      </div>
      
      <div class="fr" style="margin:8px 0 0 0;"><%=mypager%></div>
      
    <% } else { %>
    <% } %>
    
    </div>
  </form>
  <script type="text/javascript">
  <% if (areaid != -1)
     { %>
     document.getElementById("AreaSlt").value = <%=areaid %>;     
  <% } %>
  <% if (currentCertificateID != -1)
     { %>
     document.getElementById("CertificateSlt").value = <%=currentCertificateID %>;
  <% } %>
  </script>
</body>
</html>
